<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@taglib prefix="s" uri="/struts-tags"%>
  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="author" content="Luka Cvrk (www.solucija.com)" />
	<link rel="stylesheet" href="image_css/style.css" type="text/css" />
	<title>找工作</title>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	
	$("#aid").click( function (){
		$.ajax({
			   type: "POST",
			   url: "check.action",
			   data: {queryString: $("#eid").val()},
			   success: function(msg){
			    	    document.getElementById('l1').innerHTML=msg;
					   
			    }
			   	   	   
		});
		
	});
});
$(document).ready(function(){
	
	$("#uid").blur( function (){
		$.ajax({
			   type: "POST",
			   url: "checkUserName.action",
			   data: {queryString: $("#uid").val()},
			   success: function(msg){
				      
				   document.getElementById('l1').innerHTML=msg;      
					     
			    
			    	   
			    }
			   	   	   
		});
		
	});
});
</script>
</head>
<body>

	<div id="content">
		<div id="header">
			<p id="top_info"> <a href="#">登录</a> | <a href="#">注册</a>.<br />
		    .</p>
			
			<div id="logo">
				<h1><a href="#" title="Centralized Internet Content">找<span class="title"><font color="#FF0000">工作</font></span></a></h1>
				<p>欢迎来找工作</p>
			</div>
		</div>
					
		<div id="tabs">
			<ul>	
				<li></li>
				<li><a class="current" href="#" accesskey="v"><span class="key">首</span>页</a></li>
				<li><a href="#" accesskey="r">企<span class="key">业</span>登录</a></li>
				<li><a href="#" accesskey="i"><span class="key">会员</span>登录</a></li>
				<li><a href="#" accesskey="d"><span class="key">D</span>ocs</a></li>
				<li><a href="#" accesskey="a"><span class="key">A</span>ll</a></li>
			</ul>
			<div id="search">
				<form method="post" action="?">
					<p>职位搜索
					  <input type="text" name="search" class="search" /> <input type="submit" value="Search" class="button" /></p>
				</form>
			</div>
		</div>
					
		<div class="gboxtop"></div>
		<div class="gbox">
			<p><a href="#">Lorem ipsum dolor</a> sit amet, consectetuer adipiscing elit, sed diam 
			nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi 
			enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip
			 ex. Ut wisi enim ad minim veniam, quis nostrud <a href="#">exerci tation</a> ullamcorper suscipit 
			 lobortis nisl ut aliquip ex.</p>
		</div>
		
		<div class="left">
			<div class="left_articles">
			
				<div class="buttons"><p><a href="#" class="bluebtn">Read</a> <a href="#" class="greenbtn">Mark</a></p></div>
				<h2>用户注册</h2>
				 <h3 style="color:#FF0000"><label id ="l1"></label></h3><br/><br/>
				<s:form action="registerdo" namespace="/" method="post"  validate="true">
				<p><s:textfield label="电子邮箱" name="user.userEmail" id="eid" /><a  href="#" id="aid">检查邮箱是否可用</a></p>
				<p><s:textfield label="用户名" name="user.userName" id="uid" /></p><td></td>
				<p><s:password label="密码" name="user.userPassword" /></p><td></td>
				<p><s:password label="确认密码" name="rePassword" /></p><td></td>
				  <tr>
						<td><s:submit id="dd" value="注册" theme="simple" /></td>
						<td><s:reset id="ddd" value="重置" theme="simple" /></td>
					</tr>
				</s:form>
		  </div>
					
			</div>
		<div id="right">
			<div class="boxtop"></div>
			<div class="box">
				<p><img src="image_css/images/image.gif" alt="Image" title="Image" class="image" /><b>用户登录的位置</b><br />
				<br /><br /><br /><br />
				</p>
				<div class="buttons">
				  <p><a href="#" class="bluebtn">登录</a> <a href="#" class="greenbtn">注册</a></p>
				</div>
			</div>
			
			<div class="boxtop"></div>
			<div class="box">
				<p><img src="image_css/images/image.gif" alt="Image" title="Image" class="image" /><b>Lorem ipsum dolor sit amet</b><br />consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis.<br /></p>
				<div class="buttons"><p><a href="#" class="bluebtn">Read</a> <a href="#" class="greenbtn">Mark</a></p></div>
			</div>
		</div>	
		<div class="footer">
			<p><a href="#">RSS Feed</a> &middot; <a href="#">Most Popular</a> &middot; <a href="#">Today's Favorites</a> &middot; <a href="#">All Time Favorites</a> &middot; <a href="#">Sharing Policy</a> &middot; <a href="http://www.solucija.com/home/commercial-templates/" title="Professional CSS Templates">Professional CSS Templates</a> &middot; <a href="http://www.ni5ni6.com">Ni5Ni6</a> &middot; <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> and <a href="http://validator.w3.org/check?uri=referer">XHTML</a><br />
			&copy; Copyright 2006 Internet Sharing, Design: Luka Cvrk - <a href="http://www.solucija.com/" title="Information Architecture and Web Design">Solucija</a></p>
		</div>
	</div>
</body>
</html>